import pyautogui
import pyperclip
import time

pyautogui.alert('准备开始！')

click_cord = [
    (445, 365),
    (272, 388),
    (251, 426),
    (262, 447),
    (242, 468),
    (286, 488),
    (205, 513),
    (215, 534),
    (301, 556),
    (213, 578),
    (269, 621),
    (256, 643),
    (256, 668),
    (243, 690),
    (215, 710),
    (215, 730),
    (215, 750),
    (215, 771),
    (215, 790),
    (215, 810),
    (215, 830),
    (215, 848),
]
for each in click_cord:
    pyautogui.click(each)

for k in range(3):
    pyautogui.press('tab')

pyperclip.copy('抗感染')
pyautogui.hotkey('ctrl', 'v')

pyautogui.press('tab')
pyperclip.copy('多脏器损害')
pyautogui.hotkey('ctrl', 'v')

pyautogui.press('tab')
pyperclip.copy('加强护理，配合治疗')
pyautogui.hotkey('ctrl', 'v')

pyautogui.press('tab')
pyperclip.copy('升级抗感染治疗方案')
pyautogui.hotkey('ctrl', 'v')

click_after_fill = [
    (335, 950),
    (452, 976),
    (302, 993),
]
for each_cord in click_after_fill:
    pyautogui.click(each_cord)
pyautogui.scroll(-500)
time.sleep(0.5)

click_after = [
    (302, 741),
    (302, 761),
    (198, 783),
    (198, 802),
    (288, 821),
]
for i in click_after:
    pyautogui.click(i)

for j in range(5):
    pyautogui.press('tab')

pyperclip.copy('陈白璐')
pyautogui.hotkey('ctrl', 'v')

pyautogui.press('tab')
pyperclip.copy('陈芳')
pyautogui.hotkey('ctrl', 'v')